// Base64解密再Gzip解压
import pako from "pako";
export function decodeAgvPathMessage(encodedData) {
  let decodedData = window.atob(encodedData);
  const charData = decodedData.split("").map((x) => x.charCodeAt(0));
  const binData = new Uint8Array(charData);
  const data = pako.inflate(binData);
  const textDecoder = new TextDecoder();
  decodedData = textDecoder.decode(data);
  return unescape(decodedData);
}
